package com.my.blog.website;

import com.my.blog.website.utils.Tools;

import java.util.Arrays;

/**
 * Created by 13 on 2017/4/2.
 */
public class Pwdtest {
    public static void main(String args[]){
        /*UserVo user = new UserVo();
        user.setUsername("admin");
        user.setPassword("J9lew2irojE23");
        String encodePwd = TaleUtils.MD5encode(user.getUsername() + user.getPassword());
        System.out.println(encodePwd);*/

        String tags = "你好,我是,你,我是,你好,鸟事,是,你是,你是";
        String categories = "halo,woqu,woqu,nihao,halo,haha,haha";

        // tags和categories去重
        tags = String.join(",", Tools.removeDuplicate(Arrays.asList(tags.split(","))));
        categories = String.join(",",Tools.removeDuplicate(Arrays.asList(categories.split(","))));

        System.out.println("重拍后的结果:" + tags);
        System.out.println("重拍后的结果:" + categories);

    }
}
